package com.jhmk.springboot.vo;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@TableName("jhsys_user")
@Data //lombok注解
@ApiModel(description = "用户实体对象")
public class User {
    @ApiModelProperty(value = "用户id主键")
    private String id;
    @ApiModelProperty(value = "用户名、工号")
    private String username;
    @NotBlank(message = "显示名不能为空！")
    @ApiModelProperty(value = "显示名")
    private String displayname;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getDisplayname() {
        return displayname;
    }

    public void setDisplayname(String displayname) {
        this.displayname = displayname;
    }

    @Override
    public String toString() {
        return  "用户实体打印：id："+getId()+",username:"+getUsername()+",显示名："+getDisplayname()+"。";
    }
}
